package com.molichuxing.gateway.bff.orders.entity.response;

import com.molichuxing.framework.dto.ResponseRootDto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 还车结果vo
 * 
 * @author zoumingyu
 * @date 2019年12月10日
 *
 */
@Data
public class ReturnCarResultVo extends ResponseRootDto {
	private static final long serialVersionUID = 5485287667772271628L;

	@ApiModelProperty(value = "结果（0：失败，1：成功）")
	private Boolean result;

	@ApiModelProperty(value = "结果说明")
	private String explain;
	
	public void failure(String explain) {
		this.result = false;
		this.explain = explain;
	}
	
	public void success(String explain) {
		this.result = true;
		this.explain = explain;
	}
}
